home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2004 May / SGI IRIX 6.5 Applications 2004 May.iso / dev / java2_dev.idb / usr / java2 / include / irix / jawt_md.h.z / jawt_md.h
C/C++ Source or Header  |  2004-02-24  |  947b  |  44 lines

  1. /*
  2.  * @(#)jawt_md.h    1.9 01/12/03
  3.  *
  4.  * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5.  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6.  */
  7.  
  8. #ifndef _JAVASOFT_JAWT_MD_H_
  9. #define _JAVASOFT_JAWT_MD_H_
  10.  
  11. #include <X11/Xlib.h>
  12. #include <X11/Xutil.h>
  13. #include <X11/Intrinsic.h>
  14. #include "jawt.h"
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. /*
  21.  * X11-specific declarations for AWT native interface.
  22.  * See notes in jawt.h for an example of use.
  23.  */
  24. typedef struct jawt_X11DrawingSurfaceInfo {
  25.     Drawable drawable;
  26.     Display* display;
  27.     VisualID visualID;
  28.     Colormap colormapID;
  29.     int depth;
  30.     /*
  31.      * Since 1.4
  32.      * Returns a pixel value from a set of RGB values.
  33.      * This is useful for paletted color (256 color) modes.
  34.      */
  35.     int (JNICALL *GetAWTColor)(JAWT_DrawingSurface* ds,
  36.         int r, int g, int b);
  37. } JAWT_X11DrawingSurfaceInfo;
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #endif /* !_JAVASOFT_JAWT_MD_H_ */
  44.